<?php
require 'Controller.php ';
require 'admin/model/AdminModel.php';
class AdminController extends Controller{
	function __Construct(){
		parent::__Construct();
		$this->mod = 'admins';
	}
function login(){
$model = new AdminModel();
$result = $model->login();
if($result>0)
{

	header("location:admin.php?c=music&m=listmusics");
}else{
	header("location:index.php?re=1&msg=登陆失败，请重新登陆");
}
$this->assign('admins',$data);
$this->display();
	}
}
